package Practica6.Ambiguedad;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;


/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    { 
    	try {
			CharStream input = new ANTLRFileStream(args[0]);
			AnalexLexer lexer = new AnalexLexer(input);
			CommonTokenStream tokens = new CommonTokenStream(lexer);
			AnalexParser parser = new AnalexParser(tokens);
			  
			parser.entrada();
    	}catch(RecognitionException ae){
    		System.out.println("Error gramatical");
    	
		}catch(IOException e) {
			System.err.println("Error");
		}
    }
}
